from src import extract_frames_from_gif, remove_background, images_to_gif

# f"{output_dir}/_{frame_number}.png"

output_dir = "gif_output/jump"
gif_path = "./assets/jump.gif"

def main():
    # extract_frames_from_gif(gif_path, output_dir)
    # for i in range(10):
    #     remove_background(f"{output_dir}/_{i}.png", f"{output_dir}/10_{i}.png")

    # images_to_gif
    images_to_gif(
        [f"{output_dir}/_{i}-removebg-preview.png" for i in range(15)],
        "jump_ok.gif",
        duration=100
    )
if __name__ == "__main__":
    main() 